var M_Init = {
    _api: {},
    _controller: "",
    _gameId: 0,
    _gameId2: 0,
    _gameDetailId: 0,
    _gameIdRight: 0,
    _searchKeyword: "",
    _menuColumnAbnormal: {},
    _isUseKeywordReset: !1,
    _menuCache: {},
    _menuInitCache: {},
    _menuAbnormalCache: {},
    _menuIsGetCache: [],
    _operateCondition: {},
    _operateFrom: "",
    _headMenuIsShow: !1,
    _getGameId: function (t) {
        return B_Game._getLast(t)
    },
    _clean: function () {
        B_Page._size = 10, B_Chart._chartBarn = [], M_Init._searchKeyword = "", M_Init._gameId = 0, M_Init._gameIdRight = 0, M_Init._menuColumnAbnormal = {}, M_Init._isUseKeywordReset = !1, M_Init._dataCache = {}, M_Init._dateCache = {
            begin: "",
            end: "",
            begin2: "",
            end2: "",
            begin3: "",
            end3: ""
        }
    },
    _dataInnerGame: [],
    _dataCache: {},
    _dateCache: {begin: "", end: "", begin2: "", end2: "", begin3: "", end3: ""},
    _dateChoose: {
        begin: B_Date._getDiffDate(null, -30),
        end: B_Date._getDiffDate(null, -1),
        beginLimit: B_Date._getDiffUnixTime(null, -90)
    }
}, M_Dom = {
    _trSelected: function () {
        console.log("");
        $(".tg-table tr").on("click", function () {
            $(".tg-table tr").removeClass("tr-selected"), $(this).addClass("tr-selected")
        })
    }, _menuInit: function () {
        console.log("初始化菜单");
        return {
            "智能分析Demo": {
                "运营通用指标": {
                    "d-1-1": ["考核数据", B_Jump._getUrl("insideDemo", {type: "index#/insideSummary"}), "tg-side-icon-1"],
                    "d-1-2": ["玩家分析", B_Jump._getUrl("insideDemo", {type: "index#/insideAdditional"}), "tg-side-icon-2"],
                    "d-1-3": ["留存分析", B_Jump._getUrl("insideDemo", {type: "index#/insideRetentioncount"}), "tg-side-icon-2-1"],
                    "d-1-4": ["付费分析", B_Jump._getUrl("insideDemo", {type: "index#/insidePayData"}), "tg-side-icon-2-2"],
                    "d-1-5": ["流失分析", B_Jump._getUrl("insideDemo", {type: "index#/insideLostAnalysis"}), "tg-side-icon-2-3"],
                    "d-1-6": ["渠道分析", B_Jump._getUrl("insideDemo", {type: "index#/insideChannelQuality"}), "tg-side-icon-2-4"]
                },
                "产品定制指标": {
                    "0-2": ["关卡驻留分析", B_Jump._getUrl("insideDemo", {type: "index#/insidePersonality|0-2"}), "movement-icon-1"],
                    "1-4": ["成长进度分析", B_Jump._getUrl("insideDemo", {type: "index#/insidePersonality|1-4"}), "movement-icon-2"],
                    "2-7": ["核心玩法分析", B_Jump._getUrl("insideDemo", {type: "index#/insidePersonality|2-7"}), "movement-icon-3"],
                    "3-12": ["虚拟消费分析", B_Jump._getUrl("insideDemo", {type: "index#/insidePersonality|3-12"}), "movement-icon-4"],
                    "4-17": ["英雄分析", B_Jump._getUrl("insideDemo", {type: "index#/insidePersonality|4-17"}), "movement-icon-5"],
                    "5-19": ["社交分析", B_Jump._getUrl("insideDemo", {type: "index#/insidePersonality|5-19"}), "movement-icon-6"]
                }
            },
            "玩家运营Demo": {
                "玩家群体智能分析": {
                    "d-8-3": ["玩家智能聚类", B_Jump._getUrl("insideDemo", {type: "index#/operateBasic"}), "tg-side-icon-3-2"],
                    "d-8-5": ["付费玩家分析", B_Jump._getUrl("insideDemo", {type: "index#/operatePay"}), "tg-side-icon-3-5"],
                    "d-8-6": ["流失玩家分析", B_Jump._getUrl("insideDemo", {type: "index#/operateLost"}), "tg-side-icon-3-6"],
                    "d-8-2": ["玩家属性分布", B_Jump._getUrl("insideDemo", {type: "index#/operatePlayer"}), "tg-side-icon-3"]
                },
                "运营日常工具": {"d-8-4": ["玩家行为日志搜索", B_Jump._getUrl("insideDemo", {type: "index#/operateLog"}), "tg-side-icon-4"]}
            },
            "玩家运营": {
                "玩家群体智能分析": {
                    "8-3": ["玩家智能聚类", B_Jump._getUrl("index#/operateBasic"), "tg-side-icon-3-2"],
                    "8-5": ["付费玩家分析", B_Jump._getUrl("index#/operatePay"), "tg-side-icon-3-5"],
                    "8-6": ["流失玩家分析", B_Jump._getUrl("index#/operateLost"), "tg-side-icon-3-6"],
                    "8-2": ["玩家属性分布", B_Jump._getUrl("index#/operatePlayer"), "tg-side-icon-3"]
                }, "运营日常工具": {"8-4": ["玩家行为日志搜索", B_Jump._getUrl("operateLog"), "tg-side-icon-4"]}
            },
            "智能分析": {
                "运营通用指标": {
                    "1-1": ["游戏概览", null, "tg-side-icon-1", {
                        "1-1-1": ["考核数据", B_Jump._getUrl("index#/insideSummary")],
                        "1-1-2": ["关键指标", B_Jump._getUrl("index#/insideKeypoint")]
                    }],
                    "1-2": ["玩家分析", null, "tg-side-icon-2", {
                        "1-2-1": ["新增玩家", B_Jump._getUrl("index#/insideAdditional")],
                        "1-2-2": ["活跃玩家", B_Jump._getUrl("index#/insideActivity")],
                        "1-2-3": ["留存玩家", B_Jump._getUrl("index#/insideSave")],
                        "1-2-4": ["付费玩家", B_Jump._getUrl("index#/insidePay")],
                        "1-2-5": ["流失玩家", B_Jump._getUrl("index#/insideLost")],
                        "1-2-6": ["玩家习惯", B_Jump._getUrl("index#/insideHabit")]
                    }],
                    "1-3": ["留存分析", B_Jump._getUrl("index#/insideRetentioncount"), "tg-side-icon-2-1"],
                    "1-4": ["付费分析", null, "tg-side-icon-2-2", {
                        "1-4-1": ["付费数据", B_Jump._getUrl("index#/insidePayData")],
                        "1-4-2": ["付费渗透", B_Jump._getUrl("index#/insidePayOsmosis")],
                        "1-4-3": ["付费转化", B_Jump._getUrl("index#/insidePayConversion")],
                        "1-4-4": ["付费习惯", B_Jump._getUrl("index#/insidePayHabit")]
                    }],
                    "1-5": ["流失分析", null, "tg-side-icon-2-3", {
                        "1-5-1": ["流失统计", B_Jump._getUrl("index#/insideLostAnalysis")],
                        "1-5-2": ["流失漏斗", B_Jump._getUrl("index#/insideLostFunnel")]
                    }],
                    "1-6": ["渠道分析", null, "tg-side-icon-2-4", {
                        "1-6-1": ["质量指标分析", B_Jump._getUrl("index#/insideChannelQuality")],
                        "1-6-2": ["收入指标分析", B_Jump._getUrl("index#/insideChannelEarn")]
                    }]
                }
            },
            "舆情分析": {
                "游戏舆情监控": {
                    "3-3": ["舆情中心", B_Jump._getUrl("index#/outsideCenter"), "tg-side-icon-18"],
                    "3-4": ["排行榜", null, "tg-side-icon-19", {
                        "3-4-1": ["舆情量排行榜", B_Jump._getUrl("index#/outsideRankSentiment")],
                        "3-4-2": ["Appstore排行榜", B_Jump._getUrl("index#/outsideRankApp")]
                    }]
                },
                "舆情分析工具": {
                    "3-1-4": ["聊天记录分析", B_Jump._getUrl("index#/outsideChat"), "tg-side-icon-7"],
                    "3-1-3": ["自定义舆情监控", B_Jump._getUrl("index#/outsideAssistant"), "tg-side-icon-9"],
                    "3-1-1": ["突发问题预警任务管理", B_Jump._getUrl("index#/outsideTask"), "tg-side-icon-8"]
                }
            },
            "专业服务": {
                "游戏战略咨询": {
                    "6-1_4": ["产品广告投放指南", B_Jump._getUrl("index#/reportsItemHot"), "tg-side-icon-13"],
                    "6-2_5": ["游戏立项深度分析报告", B_Jump._getUrl("index#/reportsItemDeep"), "tg-side-icon-14"],
                    "6-3_6": ["细分市场调研", B_Jump._getUrl("index#/reportsItemRival"), "tg-side-icon-15"],
                    "6-4_7": ["游戏行业分析报告", B_Jump._getUrl("index#/reportsItemGuide"), "tg-side-icon-16"],
                    "6-5_9": ["泛娱乐IP深度解读报告", B_Jump._getUrl("index#/reportsItemIp"), "tg-side-icon-3-3"]
                },
                "产品调优咨询": {
                    "4-1_8": ["玩家群体构成和特征分析", B_Jump._getUrl("index#/reportsItemClustering"), "tg-side-icon-3-4"],
                    "4-1_1": ["玩家流失原因分析", B_Jump._getUrl("index#/reportsItemLost"), "tg-side-icon-10"],
                    "4-2_2": ["付费点优化方案", B_Jump._getUrl("index#/reportsItemPay"), "tg-side-icon-11"],
                    "5-1_3": ["系统数值合理性评估", B_Jump._getUrl("index#/reportsItemRationality"), "tg-side-icon-12"]
                }
            },
            "游戏详情": {
                "游戏口碑分析": {
                    "7-7": ["论坛舆情分析", B_Jump._getUrl("index#/gameLight"), "tg-side-icon-21"],
                    "7-8": ["渠道舆情分析", B_Jump._getUrl("index#/gameAnalysis"), "tg-side-icon-23"],
                    "7-9": ["贴吧用户画像", null, "tg-side-icon-5", {
                        "7-9-1": ["人群概览", B_Jump._getUrl("index#/gameFaceSummary")],
                        "7-9-2": ["详细指标", B_Jump._getUrl("index#/gameFaceDetail")],
                        "7-9-3": ["人群对比", B_Jump._getUrl("index#/gameFaceCompare")]
                    }],
                    "7-10": ["游戏舆情助手", B_Jump._getUrl("index#/gameAssistant"), "tg-side-icon-22"]
                },
                "游戏舆情数据库": {
                    "7-5": ["论坛帖搜索", B_Jump._getUrl("index#/gamePost"), "tg-side-icon-25"],
                    "7-6": ["全渠道评论", B_Jump._getUrl("index#/gameComment"), "tg-side-icon-26"]
                }
            }
        }
    }, _menuDynamic: function (t, e) {
        if ($.inArray(M_Init._gameId, M_Init._menuIsGetCache) > -1)M_Init._menuInitCache && M_Init._menuInitCache[M_Init._gameId] && M_Dom._menuList("智能分析", t, M_Init._menuInitCache[M_Init._gameId], e); else {
            var a = {};
            a.game_id = M_Init._gameId, a = B_Common._postData(a), B_Port._ajax(M_Init._api.innerOperationMenu, "post", !0, a, function () {
                B_Pop._init("load", {type: 1, time: 60, shade: [.6, "#000000"]})
            }, function () {
                B_Pop._init("close")
            }, function (a, i) {
                var o = M_Dom._menuInit();
                if (a.menu && a.menu.length > 0) {
                    o["智能分析"]["产品定制指标"] = {};
                    for (var s = 0; s < a.menu.length; s++)if (o["智能分析"]["产品定制指标"]["10-" + s] = [a.menu[s].name, null, "movement-icon-" + a.menu[s].ico, {}], a.menu[s].child && a.menu[s].child.length > 0)for (var n = 0; n < a.menu[s].child.length; n++)o["智能分析"]["产品定制指标"]["10-" + s][3]["10-" + s + "-" + a.menu[s].child[n].id] = [a.menu[s].child[n].name, B_Jump._getUrl("insidePersonality", {type: s + "-" + a.menu[s].child[n].id})]; else o["智能分析"]["产品定制指标"]["10-" + s][1] = B_Jump._getUrl("insidePersonality", {type: s + "-" + a.menu[s].id})
                }
                M_Init._menuInitCache[M_Init._gameId] = o, M_Init._menuAbnormalCache[M_Init._gameId] = a.abnormal ? a.abnormal : {}, M_Init._menuIsGetCache.push(M_Init._gameId), M_Dom._menuList("智能分析", t, o, e)
            }, function (t, e, a) {
                B_Pop._init("open", {content: e})
            })
        }
    }, _menuProcess: function (t) {
        switch (t) {
            case"overview":
                F_Overview_Info._getInfo();
                break;
            case"operateDemo":
                F_Demo_Info._getInfo("operate");
                break;
            case"demo":
                F_Demo_Info._getInfo("inside");
                break;
            case"helper":
                F_Helper_Info._getInfo();
                break;
            case"basic":
                F_Basic_Info._getInfo();
                break;
            case"player":
                F_Player_Info._getInfo();
                break;
            case"summary":
                F_Summary_Info._getInfo();
                break;
            case"attribute":
                F_Attribute_Search._getSearchMeta();
                break;
            case"log":
                F_Log_Tab._getTab();
                break;
            case"operateLost":
            case"operatePay":
                F_OperatePayLost_Info._getInfo();
                break;
            case"keypoint":
                F_Keypoint_Info._domInit();
                break;
            case"additional":
                F_Additional_Info._domInit();
                break;
            case"activity":
                F_Activity_Info._domInit();
                break;
            case"save":
                F_Save_Info._domInit();
                break;
            case"pay":
                F_Pay_Info._domInit();
                break;
            case"lost":
                F_Lost_Info._domInit();
                break;
            case"habit":
                F_Habit_Info._domInit();
                break;
            case"retentioncount":
                F_Retentioncount_Info._domInit();
                break;
            case"paydata":
                F_PayData_Info._domInit();
                break;
            case"payosmosis":
                F_PayOsmosis_Info._domInit();
                break;
            case"payconversion":
                F_PayConversion_Info._domInit();
                break;
            case"payhabit":
                F_PayHabit_Info._domInit();
                break;
            case"lostanalysis":
                F_LostAnalysis_Info._domInit();
                break;
            case"lostfunnel":
                F_LostFunnel_Info._domInit();
                break;
            case"channelquality":
                F_ChannelQuality_Info._domInit();
                break;
            case"channelearn":
                F_ChannelEarn_Info._domInit();
                break;
            case"personality":
                F_Personality_Info._domInit()
        }
    }, _menuList: function (t, e, a, i) {
        var o = !0, s = "", n = "", _ = a ? a : M_Dom._menuInit();
        if (_[t]) {
            switch (t) {
                case"专业服务":
                    o = !1, s += '<ul class="nav nav-sidebar">', s += '<li class="sort-title', "0" == e && (s += " active"), s += '"><i class="tg-icon tg-side-icon tg-side-icon-17"></i><a href="' + B_Jump._getUrl("reportsGeneral") + '">全部服务</a></li>', s += "</ul>"
            }
            $.each(_[t], function (t, a) {
                s += '<ul class="nav nav-sidebar">', s += "-" != t ? '<li class="title">' + t + "</li>" : "", $.each(a, function (t, a) {
                    if (s += "<li", a[3] && (s += ' data-i="' + t + '"'), s += ' class="sort-title', t == e && (s += " active", n = a[0], o = !1, M_Dom._columnAbnormalCache(a[0], "-")), s += '"><i class="tg-icon tg-side-icon', a[2] && (s += " " + a[2]), s += '"></i>', s += a[1] ? '<a href="' + a[1] + '">' : '<a href="javascript:void(0)">', s += a[0] + "</a>", a[3]) {
                        var i = e.split("-");
                        i = i[0] + "-" + i[1], i == t ? (o = !1, s += '<i class="graph triangle-gray-right"></i>') : s += '<i class="graph triangle-gray-left"></i>'
                    }
                    s += "</li>", a[3] && (s += '<ul id="menu_' + t + '" ', s += i == t ? ' class="side-shadow"' : ' class="side-shadow b_none"', s += ">", $.each(a[3], function (t, i) {
                        s += "<li", t == e && (s += ' class="active"', n = i[0], M_Dom._columnAbnormalCache(a[0], i[0])), s += '><a href="' + i[1] + '">' + i[0] + "</a>", s += "</li>"
                    }), s += "</ul>")
                }), s += "</ul>"
            })
        }
        switch (o && M_Common._menuUrlInit(t), $("#menuNav").html(s), t) {
            case"专业服务":
            case"-":
                break;
            default:
                $(".sort-title").each(function (t) {
                    $(this).click(function () {
                        if ($(this).find(".graph").length > 0) {
                            var t = $(this).attr("data-i");
                            $(this).find(".graph").hasClass("triangle-gray-left") ? ($("#menuNav .graph").each(function () {
                                $(this).removeClass("triangle-gray-right").addClass("triangle-gray-left")
                            }), $("#menuNav ul ul").each(function () {
                                $(this).hide()
                            }), $(this).find(".graph").removeClass("triangle-gray-left").addClass("triangle-gray-right"), $("#menu_" + t).fadeIn()) : ($(this).find(".graph").removeClass("triangle-gray-right").addClass("triangle-gray-left"), $("#menu_" + t).fadeOut())
                        }
                    })
                })
        }
        return M_Dom._menuProcess(i), n
    }, _columnAbnormalCache: function (t, e) {
        M_Init._menuAbnormalCache[M_Init._gameId] && M_Init._menuAbnormalCache[M_Init._gameId][t] && M_Init._menuAbnormalCache[M_Init._gameId][t].data[e] && (M_Init._menuColumnAbnormal = M_Init._menuAbnormalCache[M_Init._gameId][t].data[e].data)
    }
}, M_HeadFoot = {
    _animateOffset: {offsetLeft: 0, originLeft: 0, originWidth: 0, FLY_DELAY: 1e3},
    _animateToLeft: function () {
        //图标右移动
        console.log("图标右移动");

        $("#topNav .control-icon").addClass("pack-up"),
            $("#topNav .top-tab-change").removeClass("bg-hover-effect"),
            $("#topNav .text-logo").removeClass("default-text-logo zoomLogo").addClass("scaleLogo");
        var t = $("#topNav .top-tab-selected span");

        console.log("left-nav-item",t.hasClass("left-nav-item"));

        if (t.hasClass("left-nav-item"))
            return !1;

        var e = $("#topNav .top-tab-change li");
        $("#topNav .test-logo .pic-logo").fadeOut(M_HeadFoot._animateOffset.FLY_DELAY / 2), t.addClass("left-nav-item").css({
            position: "fixed",
            left: M_HeadFoot._animateOffset.offsetLeft,
            width: 50
        }).animate({left: 10}, M_HeadFoot._animateOffset.FLY_DELAY, function () {
            $("#topGame").length > 0 && $("#topGame #chrome-tabs-demo").length > 0 && "" != $("#topGame #chrome-tabs-demo ul").html() ?
                $("#topGame").fadeIn(M_HeadFoot._animateOffset.FLY_DELAY) : $("#headerTop").fadeIn(M_HeadFoot._animateOffset.FLY_DELAY),
                $("#topNav .control-block").attr("disabled", !1)
        }), e.removeClass("top-tab-selected"), e.removeClass("left-nav-item"),
            t.parent("li").addClass("top-tab-selected").addClass("flyleft")
    },
    _animateToRight: function () {
        $("#topNav .control-icon").removeClass("pack-up"), $("#topNav .text-logo").removeClass("default-text-logo"), $("#topNav .text-logo").removeClass("scaleLogo").addClass("zoomLogo");
        var t = $("#topNav .left-nav-item"), e = $("#topNav .top-tab-change li");
        $("#topNav .top-tab-change").addClass("bg-hover-effect"), $("#topNav .test-logo .pic-logo").fadeIn(1e3), t.animate({left: M_HeadFoot._animateOffset.originLeft}, 1e3, function () {
            t.css({
                position: "static",
                width: M_HeadFoot._animateOffset.originLeft,
                left: M_HeadFoot._animateOffset.originWidth
            }).removeClass("left-nav-item"), $("#topNav .control-block").attr("disabled", !1)
        }), e.removeClass("flyleft")
    },
    _headFlyBase: function (t) {
        $("#topNav .control-block").attr("disabled", !0), t + "" == "2" ? M_Game._doHeadFly("left") : M_HeadFoot._animateToLeft()
    },
    _headShow: function (t) {
        if (M_Init._controller = B_Common._getUrl("controller"),
                $("#topNav").html(this._htmlHead(t)), t > 0 && t < 1e4)
        {
            M_Init._headMenuIsShow ? ($("#topNav .control-block i").addClass("pack-up"), $("#topNav .text-logo").removeClass("zoomLogo").addClass("default-text-logo"),
                $("#topNav .text-logo").removeClass("scaleLogo")) : t + "" != "2" && $("#headerTop").removeClass("default-flytest-ht");
            var e = $("#topNav .top-tab-change .top-tab-selected");
            try {
                M_HeadFoot._animateOffset.offsetLeft = e.offset().left, M_HeadFoot._animateOffset.originLeft = M_HeadFoot._animateOffset.offsetLeft, M_HeadFoot._animateOffset.originWidth = e.width()
            } catch (t) {
                M_HeadFoot._animateOffset.offsetLeft = 0, M_HeadFoot._animateOffset.originLeft = M_HeadFoot._animateOffset.offsetLeft, M_HeadFoot._animateOffset.originWidth = 0
            }
        }
        switch ($("#topNav .control-block").click(function () {
            $(this).attr("disabled", !0), $(this).find("i").hasClass("pack-up") ? (t + "" != "2" && $("#headerTop").removeClass("default-flytest-ht"), M_HeadFoot._animateToRight(), $("#topNav .top-tab-change li").removeClass("default-other"), $("#topNav .test-logo .text-logo").removeClass("scaleLogo").addClass("zoomLogo"), setTimeout(function () {
                $("#topNav .test-logo .text-logo").fadeIn()
            }, M_HeadFoot._animateOffset.FLY_DELAY - 200), $("#topGame").length > 0 && !$("#topGame").is(":hidden") ? $("#topGame").fadeOut() : $("#headerTop").fadeOut()) : M_HeadFoot._headFlyBase(t)
        }), $("#topNav .top-tab-change li").each(function (e) {
            0 != e && $(this).hasClass("top-tab-selected") && !M_Init._headMenuIsShow && t + "" != "2" && (M_Init._headMenuIsShow = !0, setTimeout(function () {
                M_HeadFoot._headFlyBase(t)
            }, 800)), $(this).click(function () {
                if ($(this).hasClass("top-tab-selected"))M_HeadFoot._headFlyBase(t); else switch (e + "") {
                    case"0":
                        B_Jump._go("target", "main");
                        break;
                    case"1":
                        B_Jump._go("target", "operateBasic");
                        break;
                    case"2":
                        B_Jump._go("target", "insideSummary");
                        break;
                    case"3":
                        B_Jump._go("target", "outsideCenter");
                        break;
                    case"4":
                        B_Jump._go("target", "reportsGeneral")
                }
            })
        }), M_Init._controller) {
            case"demo":
                M_Init._dataInnerGame = [{
                    game_name: "demo",
                    project_id: 952,
                    game_id: 0
                }], B_User._isDemoUser() ? $("#topNav .user-list").html('<p class="no-cursor">guest</p>') : M_HeadFoot._headClick(), M_Init._api = {innerOperationMenu: "demoInnerOperationMenu"};
                break;
            default:
                M_Init._api = {innerOperationMenu: "innerOperationMenu"}, M_HeadFoot._headClick()
        }
    },
    _headClick: function () {
        B_Format._arrowOpenClose("#topNav .user-list p", "#topNav .user-list ul"), B_Format._arrowOpenClose("#topNav .user-list i", "#topNav .user-list ul"), $("#topNav .user-list ul li").each(function (t) {
            $(this).click(function () {
                switch (t) {
                    case 0:
                        B_Jump._go("target", "member");
                        break;
                    case 1:
                        B_Login._out(B_Jump._getUrl("index"))
                }
            })
        })
    },
    _htmlHead: function (t) {
        console.log("top初始化",t);

        var e = ["", "", "", "", ""], a = "";
        switch (t + "") {
            case"0":
            case"10000":
                e[t] = ' class="top-tab-selected"',
                    a += '                    <div class="topbar-logo">         ' +
                        '               <a href="' + B_Jump._getUrl("index") + '"><i class="tg-logo tg-white-logo"></i></a>              ' +
                        '      </div>                    <ul class="top-tab-change bg-hover-effect">               ' +
                        '         <li' + e[0] + '><i class="tg-icon tg-top-icon tg-top-icon-1"></i><b>控制台</b></li>         ' +
                        '               <li' + e[4] + '><i class="tg-icon tg-top-icon tg-top-icon-5"></i><b>智能分析</b></li>   ' +
                        '                     <li' + e[1] + '><i class="tg-icon tg-top-icon tg-top-icon-2"></i><b>运营指标（跳转1）</b></li>  ' +
                        '                      <li' + e[2] + '><i class="tg-icon tg-top-icon tg-top-icon-3"></i><b>舆情雷达</b></li>   ' +
                        '                     <li' + e[3] + '><i class="tg-icon tg-top-icon tg-top-icon-4"></i><b>专业服务</b></li>     ' +
                        '               </ul>                    <div class="user-list">                  ' +
                        '      <p>' + B_User._getNick("head") + '</p>            ' +
                        '            <i class="tg-graph tg-triangle-white-bottom"></i>         ' +
                        '               <ul class="user-drop-list boxshadow b_none">          ' +
                        '                  <li>个人中心</li>                 ' +
                        '           <li>退出登录</li>                ' +
                        '        </ul>               ' +
                        '     </div>';
                break;
            default:
                var i = ["", "", "", "", ""];
                M_Init._headMenuIsShow ? (i[t] = ' class="default-left-item left-nav-item"',
                    e = ["default-other", "default-other", "default-other", "default-other", "default-other"],
                    e[t] = "top-tab-selected flyleft", a = '                ' +
                    '    <div class="test-logo">              ' +
                    '          <a href="' + B_Jump._getUrl("index") + '">      ' +
                    '                      <img class="pic-logo" src="/img/pic.png" style="display: none;">            ' +
                    '                <img class="text-logo" src="/img/text.png">           ' +
                    '             </a>               ' +
                    '         <button class="control-block" style="display: inline;"><i class="control-icon"></i></button>   ' +
                    '                 </div>                    <ul class="top-tab-change bg-hover-effect">            ' +
                    '            <li class="' + e[0] + '"><span' + i[0] + '><i class="tg-icon tg-top-icon tg-top-icon-1"></i><b>控制台</b></span></li>     ' +
                    '                   <li class="' + e[4] + '"><span' + i[4] + '><i class="tg-icon tg-top-icon tg-top-icon-5"></i><b>智能分析</b></span></li>       ' +
                    '                 <li class="' + e[1] + '"><span' + i[1] + '><i class="tg-icon tg-top-icon tg-top-icon-2"></i><b>运营指标</b></span></li>      ' +
                    '                  <li class="' + e[2] + '"><span' + i[2] + '><i class="tg-icon tg-top-icon tg-top-icon-3"></i><b>舆情雷达</b></span></li>        ' +
                    '                <li class="' + e[3] + '"><span' + i[3] + '><i class="tg-icon tg-top-icon tg-top-icon-4"></i><b>专业服务</b></span></li>        ' +
                    '            </ul>                    <div class="user-list">                        <p>' + B_User._getNick("head") + '</p>                   ' +
                    '     <i class="tg-graph tg-triangle-white-bottom"></i>                        <ul class="user-drop-list boxshadow b_none">                   ' +
                    '         <li>个人中心</li>                            <li>退出登录</li>                        </ul>               ' +
                    '     </div>') : (i[t] = "", e[t] = "top-tab-selected", a = '                    <div class="test-logo">             ' +
                    '           <a href="' + B_Jump._getUrl("index") + '">                      ' +
                    '      <img class="pic-logo" src="/img/pic.png" style="display: none;">                  ' +
                    '          <img class="text-logo" src="/img/text.png">                        </a>       ' +
                    '                 <button class="control-block"><i class="control-icon"></i></button>      ' +
                    '              </div>                    <ul class="top-tab-change bg-hover-effect">         ' +
                   // '               <li class="' + e[0] + '"><span' + i[0] + '><i class="tg-icon tg-top-icon tg-top-icon-1"></i><b>控制台</b></span></li>  ' +
                    '             <li class="' + e[4] + '"><span' + i[4] + '><i class="tg-icon tg-top-icon tg-top-icon-5"></i><b>智能分析</b></span></li>   ' +
                    '                     <li class="' + e[1] + '"><span' + i[1] + '><i class="tg-icon tg-top-icon tg-top-icon-2"></i><b>运营指标</b></span></li>     ' +
                   // '                   <li class="' + e[2] + '"><span' + i[2] + '><i class="tg-icon tg-top-icon tg-top-icon-3"></i><b>舆情雷达</b></span></li>      ' +
                  //  '                  <li class="' + e[3] + '"><span' + i[3] + '><i class="tg-icon tg-top-icon tg-top-icon-4"></i><b>专业服务</b></span></li>     ' +
                    '               </ul>                    <div class="user-list">                        <p>' + B_User._getNick("head") + '</p>            ' +
                    '            <i class="tg-graph tg-triangle-white-bottom"></i>                        <ul class="user-drop-list boxshadow b_none">             ' +
                    '               <li>个人中心</li>                            <li>退出登录</li>             ' +
                    '           </ul>         ' +
                    '           </div>')
        }
        return a
    },
    _htmlFoot: function () {
        var t = '            <div class="footer-bottom">                <i class="tg-logo tg-blue-logo"></i>                <p>客服邮箱：service@thinkingdata.cn</p>                <span>联系地址：上海市长宁区中山西路999号</span>                <span class="fr">2015-2017 THINKINGGAME.CN 版权所有&nbsp;&nbsp;<a href="http://www.miitbeian.gov.cn/" target="_blank">沪ICP备 15030552号</a></span>            </div>';
        return t
    }
}, M_AppCommentList = {
    _buff: {}, _postData: {type: "", data: ""}, _keywords: "", _focusKeywords: function (t) {
        var e = t;
        if ("" != M_AppCommentList._keywords) {
            var a = M_AppCommentList._keywords;
            a = a.toLowerCase(), a = a.split(",");
            var i = $.inArray("ss", a);
            i > -1 && (e = B_Common._focusKeywords("ss", e), a.splice(i, 1));
            for (var o = 0; o < a.length; o++)e = B_Common._focusKeywords(a[o], e)
        }
        return e
    }, _pageRequest: function (t) {
        var e = $("#lt_forum_page button").attr("data-a");
        t > 0 && parseInt(t) <= parseInt(e) && M_AppCommentList._getList(t)
    }, _conditionList: function (t) {
        var e = {}, a = (t - 1) * B_Page._size;
        switch (M_AppCommentList._postData.type) {
            case"comment":
                M_AppCommentList._postData.data.source_type_list && (e.source_type_list = M_AppCommentList._postData.data.source_type_list), M_AppCommentList._postData.data.rating_stage_list && (e.rating_stage_list = M_AppCommentList._postData.data.rating_stage_list), M_AppCommentList._postData.data.es_field_name && (e.es_field_name = M_AppCommentList._postData.data.es_field_name), M_AppCommentList._postData.data.es_field_val && (e.es_field_val = M_AppCommentList._postData.data.es_field_val), M_AppCommentList._postData.data.sentiment_keywords && (e.sentiment_keywords = M_AppCommentList._postData.data.sentiment_keywords), M_AppCommentList._postData.data.word && (e.keywords = M_AppCommentList._postData.data.word, M_AppCommentList._keywords = M_AppCommentList._postData.data.word), e.order_by_field = M_AppCommentList._postData.data.order_field, e.order_type = M_AppCommentList._postData.data.order_by, e.data_date_start = M_AppCommentList._postData.data.begin, e.data_date_end = M_AppCommentList._postData.data.end
        }
        return e.project_id = M_Init._gameId, e.index = a, e.limit = B_Page._size, B_Common._postData(e)
    }, _getList: function (t) {
        var e = "channelComments", a = M_AppCommentList._conditionList(t), i = $("#lt_forum_list"), o = $("#lt_forum_page");
        B_Port._ajax(e, "get", !0, a, function () {
            $("#lt_forum_list,#lt_forum_list *").unbind().removeData(), i.html(B_Pre._loading("b_padding30")), o.html("")
        }, function () {
            i.html("")
        }, function (e, a) {
            e.data && e.data.list.length > 0 ? (i.html(M_AppCommentList._htmlList(e.data)), o.html(B_Page._show({
                total: e.data.total,
                page: t
            }, "simple")), B_Page._click(t, function (t) {
                M_AppCommentList._getList(t)
            }), i.perfectScrollbar()) : i.html('<div class="b_empty b_colorR">当前时间段暂无数据</div>')
        }, function (t, e, a) {
            i.html(B_Pre._empty(e))
        })
    }, _htmlList: function (t) {
        for (var e = "", a = "", i = 0; i < t.list.length; i++) {
            a = t.list[i].source, e += '<li class="boxshadow  first-floor"><div>', e += '<img src="' + B_Game._imgSourceUrl(a.source_type, "small") + '" alt="' + a.source_name + '">', e += '<div class="star-level">';
            for (var o = 1; o <= 5; o++)e += o <= a.rating_star ? '<i class="tg-icon full-blue-star"></i>' : '<i class="tg-icon full-gray-star"></i>';
            e += "</div>", e += '<span><i class="tg-icon tg-tieba-man"></i>' + a.author + "</span>", e += '<span><i class="tg-icon tg-tieba-clock"></i>' + a.publish_time + "</span>", e += "<p>" + M_AppCommentList._focusKeywords(a.content) + "</p>", e += "</div></li>"
        }
        return e
    }
}, M_ForumList = {
    _buff: {}, _postData: {type: "", classify: "", data: ""}, _keywords: "", _getFromChartClick: function (t, e) {
        t == M_ForumList._postData.data.begin && e == M_ForumList._postData.data.word || (M_ForumList._postData.data = {
            begin: t,
            end: t,
            word: e
        }, M_ForumList._getList(1))
    }, _onFocus: function () {
        var t = $("#lt_forum_list li");
        t.each(function () {
            $(this).click(function () {
                if (!$(this).hasClass("left-list-active")) {
                    var t = $(this).attr("data-i"), e = $(this).attr("data-t");
                    M_Init._isUseKeywordReset && (M_ForumList._keywords = $(this).attr("data-w")), t && e && M_ForumList._getDetail(t, e, 1), $(this).addClass("left-list-active").siblings("li").removeClass("left-list-active")
                }
            })
        })
    }, _focusKeywords: function (t, e) {
        var a = t;
        if ("" != M_ForumList._keywords || e && "" != e) {
            var i = e && "" != e ? e : M_ForumList._keywords;
            i = i.toLowerCase(), i = i.split(",");
            var o = $.inArray("ss", i);
            o > -1 && (a = B_Common._focusKeywords("ss", a), i.splice(o, 1));
            for (var s = 0; s < i.length; s++)a = B_Common._focusKeywords(i[s], a)
        }
        return a
    }, _pageRequest: function (t) {
        var e = $("#lt_forum_page button").attr("data-a");
        t > 0 && parseInt(t) <= parseInt(e) && M_ForumList._getList(t)
    }, _conditionList: function (t) {
        var e = {}, a = (t - 1) * B_Page._size;
        switch (M_ForumList._postData.type) {
            case"post":
                M_ForumList._postData.data.info_id_list && (e.info_id_list = M_ForumList._postData.data.info_id_list), M_ForumList._postData.data.lighttower_classify && (e.lighttower_classify = M_ForumList._postData.data.lighttower_classify), M_ForumList._postData.data.topic_id && (e.topic_id = M_ForumList._postData.data.topic_id), M_ForumList._postData.data.real_tag && (e.real_tag = M_ForumList._postData.data.real_tag), M_ForumList._postData.data.sentiment_score && (e.sentiment_score = M_ForumList._postData.data.sentiment_score), M_ForumList._postData.data.classify_sentiment && (2 == M_ForumList._postData.data.classify_sentiment ? e.classify_sentiment = 0 : e.classify_sentiment = M_ForumList._postData.data.classify_sentiment), M_ForumList._postData.data.word && (e.keywords = M_ForumList._postData.data.word, M_ForumList._keywords = M_ForumList._postData.data.word), e.order_by_field = M_ForumList._postData.data.order_field, e.order_type = M_ForumList._postData.data.order_by, e.data_date_start = M_ForumList._postData.data.begin, e.data_date_end = M_ForumList._postData.data.end, M_Init._dataCache.only_query_title || (e.only_query_title = 1);
                break;
            case"keyword":
                M_ForumList._keywords = M_ForumList._postData.data.word, e.order_by_field = "publish_time", e.order_type = "desc", e.data_date_start = M_ForumList._postData.data.begin, e.data_date_end = M_ForumList._postData.data.end, e.keywords = M_ForumList._postData.data.word, e.only_query_title = 1;
                break;
            case"suddenly":
                e.data_date = M_ForumList._postData.data.data_date, e.sub_type = M_ForumList._postData.data.sub_type
        }
        return e.project_id = M_Init._gameId, e.index = a, e.limit = B_Page._size, B_Common._postData(e)
    }, _getList: function (t) {
        var e = "forumSearch";
        switch (M_ForumList._postData.type) {
            case"post":
                break;
            case"suddenly":
                M_Init._isUseKeywordReset = !0, e = "sigmaItWarnDetail";
                break;
            default:
                $(".article-list .top span").html("已选：" + M_ForumList._postData.data.begin + ' <b class="tg-font-blue">' + M_ForumList._postData.data.word + "</b>")
        }
        var a = M_ForumList._conditionList(t), i = $("#lt_forum_list"), o = $("#lt_forum_page"), s = $("#lt_forum_detail");
        B_Port._ajax(e, "get", !0, a, function () {
            $("#lt_forum_list,#lt_forum_list *").unbind().removeData(), i.html(B_Pre._loading("b_padding30")), s.html(""), o.html("")
        }, function () {
            i.html("")
        }, function (e, a) {
            e.data && e.data.list.length > 0 ? (M_Init._dataCache.forum = e.data.list, i.html(M_ForumList._htmlList(e.data)), o.html(B_Page._show({
                total: e.data.total,
                page: t
            }, "simple")), M_ForumList._onFocus(), B_Page._click(t, function (t) {
                M_ForumList._getList(t)
            }), i.perfectScrollbar()) : (i.html('<div class="b_empty b_colorR">当前时间段暂无数据</div>'), s.html(""))
        }, function (t, e, a) {
            i.html(B_Pre._empty(e))
        })
    }, _getDetail: function (t, e, a) {
        var i = $("#lt_forum_detail"), o = {};
        o.project_id = M_Init._gameId, o.info_id = t, o.title_id = e, o.index = (a - 1) * B_Page._size, o.limit = B_Page._size, o = B_Common._postData(o), B_Port._ajax("forumDetail", "get", !0, o, function () {
            1 == a ? ($("#lt_forum_detail, #lt_forum_detail *").unbind().removeData(), i.html(B_Pre._loading("b_padding30"))) : i.find(".loading-state").unbind("click").html("加载中...")
        }, function () {
            1 == a && i.html("")
        }, function (o, s) {
            var n = a * B_Page._size >= o.data.total;
            if (i.find(".loading-state").remove(), 1 == a) {
                var _ = M_ForumList._getTitle(t, e);
                _ && i.html(M_ForumList._htmlTitle(_))
            }
            $("#lt_forum_detail .second-floor").append(M_ForumList._htmlDetail(o.data, a, t, e)), n ? i.find(".loading-state").unbind("click") : i.find(".loading-state").bind("click", function () {
                M_ForumList._getDetail(t, e, a + 1)
            }).addClass("b_cursor"), i.perfectScrollbar()
        }, function (t, e, o) {
            1 == a && i.html(B_Pre._empty(e))
        })
    }, _getTitle: function (t, e) {
        if (M_Init._dataCache.forum)for (var a = M_Init._dataCache.forum, i = 0; i <= a.length; i++)if (a[i].source.info_id == t && a[i].source.title_id == e)return a[i].source;
        return ""
    }, _htmlList: function (data) {
        for (var str = "<ul>", imgs = [], i = 0; i < data.list.length; i++) {
            var hasImg = "", lightTags = "";
            if (data.list[i].source.attach_content && data.list[i].source.attach_content.length > 0) {
                var attach_content = B_Common._imgDecode(data.list[i].source.attach_content);
                eval("attach_content=" + attach_content);
                for (var m = 0; m < attach_content.length; m++)imgs.push(attach_content[m].img_url);
                hasImg = '<i class="tg-icon"></i>'
            }
            if (data.list[i].source.lighttower_tags && "" != data.list[i].source.lighttower_tags) {
                for (var lightTagsArr = data.list[i].source.lighttower_tags.split(","), lightTags = [], t = 0; t < lightTagsArr.length; t++)lightTagsArr[t] = lightTagsArr[t].split(":"), lightTagsArr[t][1] && "" != lightTagsArr[t][1] && lightTags.push(lightTagsArr[t][1]);
                lightTags.length > 0 && (lightTags = lightTags.join(","))
            }
            var useClass = "";
            0 == i && "" == $("#lt_forum_detail").html() && (useClass = "left-list-active", M_Init._isUseKeywordReset && (M_ForumList._keywords = lightTags), M_ForumList._getDetail(data.list[i].source.info_id, data.list[i].source.title_id, 1));
            var content = data.list[i].source.content.length > 60 ? data.list[i].source.content.substr(0, 60) + ".." : data.list[i].source.content, time = M_Init._isUseKeywordReset ? "问题类型：" + (data.list[i].source.lighttower_class ? data.list[i].source.lighttower_class.replace("/-1", "") : "") : "发帖时间：" + B_Date._dateFormat("mini", data.list[i].source.publish_time);
            str += '                <li class="' + useClass + '" data-i="' + data.list[i].source.info_id + '" data-t="' + data.list[i].source.title_id + '"  data-w="' + lightTags + '">                    <h5>帖子标题：' + hasImg + " " + M_ForumList._focusKeywords(data.list[i].source.title, lightTags) + "</h5>                    <p>                        <b>玩家昵称：" + data.list[i].source.author + "</b>                        <b>数据来源：" + data.list[i].source.crawler_name + "</b>                    </p><p>                        <b>回帖数量：" + data.list[i].source.reply_num + "</b>                        <b>" + time + "</b>                    </p>                </li>"
        }
        return imgs.length > 0 && B_Common._imgBuff(imgs), str += "</ul>"
    }, _htmlTitle: function (data) {
        var str = "", img = "";
        if (data.attach_content && data.attach_content.length > 0) {
            var attach_content = B_Common._imgDecode(data.attach_content);
            eval("attach_content=" + attach_content);
            for (var i = 0; i < attach_content.length; i++)try {
                img += '<br><img src="' + decodeURIComponent(attach_content[i].img_url) + '">'
            } catch (t) {
            }
        }
        return str += "            <h5>帖子标题：" + M_ForumList._focusKeywords(data.title) + '</h5>            <li class="boxshadow first-floor">                <ul>                    <li><i class="tg-icon tg-tieba-href"></i> 数据源地址：<a href="' + data.from_url + '" target="_blank">' + data.from_url + '</a></span></li>                    <li><i class="tg-icon tg-tieba-num"></i> 回帖数：' + data.reply_num + '</li>                    <li><i class="tg-icon tg-tieba-clock"></i> 发帖时间:' + data.publish_time + '</li>                </ul>                <div>                    <span><i class="tg-icon tg-tieba-man"></i>' + data.author + '</span>                    <span><i class="tg-icon tg-tieba-clock"></i>' + data.publish_time + '</span>                    <span class="floor-num">1楼</span>                    <p>' + M_ForumList._focusKeywords(data.content) + img + '</p>                </div>            </li><li class="boxshadow second-floor"></li>'
    }, _htmlDetail: function (data, page, ikey, tkey) {
        var isEnd = !1;
        B_Page._size * page >= data.total && (isEnd = !0);
        for (var str = "", i = 0; i < data.list.length; i++) {
            var imgs = [], img = "";
            if (data.list[i].source.attach_content && data.list[i].source.attach_content.length > 0) {
                var attach_content = B_Common._imgDecode(data.list[i].source.attach_content);
                eval("attach_content=" + attach_content);
                for (var m = 0; m < attach_content.length; m++)try {
                    imgs.push(attach_content[m].img_url), img += '<br><img src="' + decodeURIComponent(attach_content[m].img_url) + '">'
                } catch (t) {
                }
            }
            imgs.length > 0 && B_Common._imgBuff(imgs), str += '                <div>                    <span><i class="tg-icon tg-tieba-man"></i>' + data.list[i].source.author + '</span>                    <span><i class="tg-icon tg-tieba-clock"></i>' + data.list[i].source.publish_time + '</span>                    <span class="floor-num">' + ((page - 1) * B_Page._size + i + 2) + "楼</span></dt>                    <p>" + M_ForumList._focusKeywords(data.list[i].source.content) + img + "</p>                </div>";
        }
        return str += isEnd ? '<span class="loading-state show-all">已经显示全部</span>' : '<span class="loading-state show-all">点击加载更多</span>'
    }
}, M_Common = {
    _scroll: function () {
        var t = ($("#bs_condition_list"), $("#bs_scroll_content_1"), $("#bs_scroll_btn_left")), e = $("#bs_scroll_btn_right"), a = "", i = "";
        t.click(function () {
            i = 1, clearInterval(a), a = setInterval(function () {
                M_Common._scrollDom("left", i)
            }, 10)
        }), t.mouseout(function () {
            clearInterval(a)
        }), e.click(function () {
            i = -1, clearInterval(a), a = setInterval(function () {
                M_Common._scrollDom("right", i)
            }, 10)
        }), e.mouseout(function () {
            clearInterval(a)
        })
    }, _scrollDom: function (t, e) {
        var a = $("#bs_condition_list"), i = $("#bs_scroll_content_1"), o = parseInt(a.css("left")), s = parseInt(i.innerWidth()), n = parseInt($("#bs_scroll_all").innerWidth());
        if (o || (o = 0), !(s <= n))switch (t) {
            case"left":
                if (o > 0)return;
                a.css("left", o + e + "px");
                break;
            case"right":
                if (Math.abs(o) + n > s)return;
                a.css("left", o + e + "px")
        }
    }, _menuUrlInit: function (t) {
        switch (t) {
            case"游戏详情":
                B_Jump._go("target", "outsideCenter");
                break;
            case"玩家运营":
                B_Jump._go("target", "operateBasic");
                break;
            default:
                B_Jump._go("target", "insideSummary")
        }
    }, _wordCloudShow: function (t, e, a, i) {
        for (var o = [], s = 0; s < e.length; ++s)o.push(e[s].total_num / e[0].total_num * 1.5);
        wordCloudObj = new WordCloud(t, e, a, i, null, null, null, o)
    }, _getOrderGame: function (t, e, a) {
        console.log("000000t",t)
        console.log("000000e",e)
        console.log("000000a",a)

        if (e)M_Init._gameId = e; else switch (t) {
            case"helper":
            case"log":
            case"basic":
            case"player":
            case"operatePay":
            case"operateLost":
                M_Init._gameId = M_Init._getGameId("operateGame");
                break;
            default:
                M_Init._gameId = M_Init._getGameId("insideGame")
        }
        //M_Init._dataInnerGame && M_Init._dataInnerGame.length > 0 ? M_Common._selectGame(t, a) : B_Port._ajax("innerGame", "get", !0, null, function () {
        M_Init._dataInnerGame && M_Init._dataInnerGame.length > 0 ? M_Common._selectGame(t, a) : B_Port._ajax("innerGame", "post", !0, null, function () {
            B_Pop._init("load", {type: 1, time: 60, shade: [.6, "#000000"]})
        }, function () {
            B_Pop._init("close")
            console.log("close");

        }, function (i, o) {
            console.log("i is:",i);
            console.log("0 is:",o);
            console.log("t is:",t);
            if (i && i.length > 0) {
                switch (t) {
                    case"operateDemo":
                    case"demo":
                        return void B_Jump._go("hash", e)
                }
                M_Init._dataInnerGame = i, M_Init._gameId + "" == B_Game._getDemoProjectId() + "" && (M_Init._gameId = i[0].game_id), M_Common._selectGame(t, a)
            } else switch (t) {
                case"operateDemo":
                    M_Dom._menuList("玩家运营Demo", a, null, t);
                    break;
                case"demo":
                    M_Dom._menuList("智能分析Demo", a, null, t);
                    break;
                default:
                    var s = B_Common._getUrl("hash");
                    B_Jump._go("hash", "insideDemo/" + s)
            }
        }, function (t, e, a) {
            console.log(t);
            console.log(e);
            console.log(a);
            B_Pop._init("open", {content: e})
        })
    }, _getInnerGame: function () {
        for (var t = M_Init._dataInnerGame, e = ["", ""], a = 0; a < t.length; a++)if (M_Init._gameId + "" == t[a].game_id + "") {
            e = [B_Game._imgUrl(M_Init._gameId, "inner"), t[a].game_name];
            break
        }
        return e
    }, _selectGame: function (t, e) {
        for (var a = !1, i = M_Init._dataInnerGame, o = 0; o < i.length; o++)if (M_Init._gameId + "" == i[o].game_id + "") {
            a = !0;
            break
        }
        a || (M_Init._gameId = i[0].game_id), B_Game._dropInnerGame(i, M_Init._gameId, "#gameDropChoose", function (a) {
            switch (M_Init._gameId = a, t) {
                case"helper":
                case"log":
                case"basic":
                case"player":
                case"operatePay":
                case"operateLost":
                    B_Game._setLast(a, "operateGame"), M_Dom._menuList("玩家运营", e, M_Init._menuInitCache[M_Init._gameId], t);
                    break;
                default:
                    B_Game._setLast(a, "insideGame"), M_Dom._menuDynamic(e, t)
            }
        })
    }, _createPost: function (t, e) {
        var a = document.createElement("form");
        a.action = t, a.method = "post", a.style.display = "none", a.target = "_blank";
        for (var i in e) {
            var o = document.createElement("textarea");
            o.name = i, o.value = e[i], a.appendChild(o)
        }
        return document.body.appendChild(a), a.submit(), a
    }, _downCsv: function (t) {
        if (t && t.body && t.body.length > 0) {
            var e = {tb_head: t.head, tb_body: t.body};
            e = JSON.stringify(e);
            var a = "";
            t && t.name ? (a = t.name, a = a.replace("(", "（"), a = a.replace(")", "）")) : a = "", M_Common._createPost(B_Port._init("serviceDownload"), {
                data: e,
                name: a
            })
        } else B_Pop._init("msg", {content: "暂无数据"})
    }
};